#----------------------------------------------------------------# 
# 
# Project: Configuration Example ISDN S-Bus Extensions over IP, 2 Voice Channels
# Location: BRANCH
# Element: SmartNode 4552 
# Firmware: 3.20
# Author: JW 
# Date: 2005-12-07
# Contact: support@inalp.com
# 
#----------------------------------------------------------------# 

cli version 3.00
no dns-client enabled
dns-client cache 30
webserver port 80 language en
snmp community public ro

# The sntp configuration is optional
sntp-client
sntp-client server primary <ip_timeserver> port 123 version 4
sntp-client gmt-offset + 01:00:00

system hostname Branch


profile service-policy PROF_QOS_OUT
# Set rate-limit to the maximum transfer rate of your privat access network
  rate-limit <speed> header-length 18

  source traffic-class local-voice
    priority

profile service-policy PROF_QOS_IN
# Set rate-limit to the maximum transfer rate of your privat access network
# voice-margin must be 1/3 of the rate-limit  
  rate-limit <speed> header-length 18 voice-margin <margin>

  source traffic-class local-voice
    priority

profile ppp default

profile tone-set default

profile voip default
  codec 1 g729 rx-length 20 tx-length 20
  codec 2 g711alaw64k rx-length 20 tx-length 20
  codec 3 g711ulaw64k rx-length 20 tx-length 20
  dejitter-max-delay 100

profile pstn default

profile authentication default
  method 1 local
  method 2 none

context ip router 

  interface IF_IP_WAN
# change here the IP adress and netmask to suit your network
    ipaddress <ip-address> <netmask>
    use profile service-policy PROF_QOS_OUT out
    use profile service-policy PROF_QOS_IN in

  interface IF_IP_LAN
# change here the IP adress and netmask to suit your network
    ipaddress <ip-address> <netmask>

context ip router
# change here the default gateway adress to SmartNode in main-office
  route 0.0.0.0 0.0.0.0 <IF_IP_WAN> 0

context cs switch

  interface h323 IF_H323_MAIN
    bind gateway GW_H323
    route call dest-interface IF_S0_01
# change here the IP adress and port to the SmartNode IF_IP_WAN-ip of the main-office
    remote <IF_IP_WAN> <port>
    use profile tone-set default

  interface isdn IF_S0_01
    route call dest-interface IF_H323_MAIN

 context cs switch
  no shutdown      

gateway h323 GW_H323
  faststart
  bind interface IF_IP_WAN router
  no shutdown

port ethernet 0 0
  encapsulation ip
  bind interface IF_IP_WAN router
  no shutdown

port ethernet 0 1		
  encapsulation ip 
  bind interface IF_IP_LAN router
  no shutdown 

port bri 0 0
  clock auto
  encapsulation q921

  q921
# Change the protocol to your requirements
# pp = point-to-point, pmp = point-to-multipoint
    protocol <pp | pmp>
    uni-side auto
    encapsulation q931

    q931
      protocol dss1
# Change the uni-side to your requirements
# user = pstn/PBX, net = telephone
      uni-side <user | net>
      encapsulation cc-isdn
      bind interface IF_S0_01 switch

port bri 0 0
  no shutdown

port bri 0 1
  shutdown